home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / opengl / motif / README < prev    next >
Encoding:
Text File  |  1994-08-02  |  4.0 KB  |  93 lines

  1.  
  2.             ~4Dgifts/toolbox/src/exampleCode/opengl/motif README
  3.  
  4.  
  5.                 THIS CODE RUNS/COMPILES ON 5.1 Irix OR LATER
  6.                 THIS CODE WILL NOT RUN ON LESS THAN 5.1 Irix
  7.  
  8.     (all the o*.c files were updated to reflect the shift of the 
  9.      drawing area widget, GLwMDrawA.h, moved into /usr/include/GL)
  10.  
  11.  
  12. This directory contains sample openGL source code based on the MOTIF toolkit,
  13. or at least, including the Motif library (see textfun).
  14.  
  15. Following is the directory inventory:
  16.  
  17.    oblur :       this program shows how to use accumulation buffer
  18.                  to do motion blur
  19.                  left   mouse for animation
  20.                  middle mouse to turn motion blur OFF (default)
  21.                  right  mouse to turn motion blur ON
  22.    
  23.    obuffer :     this program shows how to toggle between single and double 
  24.                  buffer mode on the fly. use left and middle mouse to switch
  25.                  buffers and right mouse for animation.
  26.    
  27.    oclip :       this program shows the usage of arbitrary clipping plane.
  28.                  use left mouse to animate the object and right mouse to 
  29.                  move the clipping plane.
  30.    
  31.    oedgeflag :   this program shows how to use edgeflag to control
  32.                  visibility of edges 
  33.                  left   mouse for animation                    
  34.                  middle mouse to turn Edge Flag OFF
  35.                  right  mouse to turn Edge Flag ON
  36.    
  37.    ohidden :     this program shows how to draw outlined polygon using 
  38.                  stencil planes. 
  39.                  left   mouse for animation
  40.                  middle mouse to turn OFF stenciling
  41.                  right  mouse to turn ON  stenciling
  42.    
  43.    olight :      a program which shows how to do hardware lighting (including
  44.                  two sided light). use left mouse to animate the object,
  45.                  middle mouse to turn on two sided light and right mouse
  46.                  to turn on single sided light.
  47.    
  48.    ostencil :    a program which shows how to use stencil planes.
  49.                  left   mouse for animation
  50.                  middle mouse to turn stenciling OFF
  51.                  right  mouse to turn stenciling ON
  52.    
  53.    otessellate : this program shows how to tessellate concave polygons
  54.                  and polygons with holes using glu routines
  55.                  left   mouse for animation
  56.                  middle mouse to turn Tessellation OFF
  57.                  right  mouse to turn Tessellation ON
  58.    
  59.    otext :       a program which shows how to create and draw bitmapped text.
  60.                  it achieves charstr() functionality of irisGL.
  61.  
  62.  
  63.    textfun:      takes bitmap fonts from the X server into an OpenGL client 
  64.                  and convert them into OpenGL display lists with 
  65.                  transformative geometry.  Text can then be displayed from 
  66.                  any perspective in 3D.
  67.  
  68.                  The program renders OpenGL into a standard Motif drawing 
  69.                  area and does not use any special OpenGL widget.  Pull-down 
  70.                  menus with toggles and radio buttons are used.  The 
  71.                  animation is controled by X Toolkit work procs;  iconfiying
  72.                  textfun will stop the work proc and resume it when the 
  73.                  program is uniconified.
  74.   
  75.                  Various fonts can be switched between.  A number of the 
  76.                  fonts are X-scalable fonts demonstrating how the blocky 
  77.                  nature of the text can be minimized with higher resolution 
  78.                  fonts.
  79.   
  80.                  textfun demonstrates:
  81.                  o  Code to suck down X bitmap fonts so they can then be 
  82.             converted into geometry (ie, not glBitmap) display list 
  83.             fonts.
  84.                  o  A pulldown menu with a radio button box.
  85.                  o  the poor-man's OpenGL font manager!
  86.  
  87.  
  88.    textfun5.1:   uses the Makefile's textfun5.1 compile rule employing the
  89.                  IRIX_5_1_MOTIF_BUG_WORKAROUND flag for a Motif bug in IRIX 5.1
  90.                 
  91.                  
  92.    xmblur:       do motion blur in OpenGL with the libGLw widget.
  93.